package com.intpro.demo.DAO;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.intpro.demo.Utils.MyAnnotations.AutoIncrement;
import java.io.Serializable;
import java.util.ArrayList;
import javax.validation.constraints.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "adminuser")
public class AdminUser implements Serializable
{
	@Id
	@AutoIncrement(baseNum = 10)
	public long id;

	@Indexed(unique = true)
	public String account;

	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	public String password;
}
